﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Imaginecup.stateManager;
using Microsoft.Xna.Framework;

namespace Imaginecup.shareData
{
    public class StateShareData
    {
        private static StateShareData m_ShareData = null;

        private GameStateManager m_StateManager;
        private Game m_Game;

        private StateShareData() { }

        public static StateShareData GetShareData()
        {
            if (m_ShareData == null)
            {
                m_ShareData = new StateShareData();
            }

            return m_ShareData;
        }

        public Game GetGame()
        {
            return m_Game;
        }

        public void SetGame(Game game)
        {
            m_Game = game;
        }

        public GameStateManager GetGameStateMan()
        {
            return m_StateManager; 
        }

        public void SetGameStateMan( GameStateManager stateMan )
        {
            m_StateManager = stateMan;
        }
    }

}
